﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Soundman : MonoBehaviour {

	// Use this for initialization

	public AudioClip click;
	public AudioClip ftruck;
	public AudioClip wilhelm;
	public AudioClip yay;
	public AudioClip march;
	public AudioClip burn;

	public GameObject TutSystem;


	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public void playsound(int sound)
	{

		if(sound == 1) this.gameObject.GetComponent<AudioSource>().clip = click;
		if(sound == 2) this.gameObject.GetComponent<AudioSource>().clip = ftruck;
		if(sound == 3) this.gameObject.GetComponent<AudioSource>().clip = wilhelm;
		if(sound == 4) this.gameObject.GetComponent<AudioSource>().clip = yay;
		if(sound == 5) this.gameObject.GetComponent<AudioSource>().clip = march;
		if(sound == 6) this.gameObject.GetComponent<AudioSource>().clip = burn;

		this.gameObject.GetComponent<AudioSource>().Play();

	}


}
